package com.waitingresult.oop.clazz;

/**
 * ALL right reserved,Designed By WangShuai
 *
 * @author : WangShuai
 * @ClassName: BaseAnimal
 * @Description:
 * @date: 2021/10/31 19:10
 * @version: 1.0
 */

public class BaseAnimal {
    private String name;
    private int age;

    public BaseAnimal() {
    }

    public BaseAnimal(String name, int age) {
        this.name = name;
        this.age = age;
        System.err.println("name : " + name + ",  age : " + age);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
